package huanzhao.erp.domain.types;

/**
 * @author April
 * 2024/10/9 20:48
 * @version 1.0
 */
public enum TeamPositionType {
    QUALITY_CHECKER, ENTRY, PUBLISHER;

    /**
     * 将渠道中的任务类型（质检、录入、上架）转化为渠道中的职位类型
     *
     * @return TeamPositionType
     * 2024/10/12 12:36:50
     */
    public static TeamPositionType convert(TaskType taskType) {
        return switch (taskType) {
            case QC -> QUALITY_CHECKER;
            case ENTER -> ENTRY;
            case PUBLISH -> PUBLISHER;
            default -> null;
        };
    }
}
